package vn.fsoft.gst.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author MinhNT
 *
 */
@Entity
@Table(name = "organisationprograme")
public class OrganisationPrograme implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@ManyToOne
	@JoinColumn(name = "OrgID")
	private Organisation organisation;

	@Id
	@ManyToOne
	@JoinColumn(name = "ProgID")
	private Programe programe;

	public Organisation getOrganisation() {
		return organisation;
	}

	public void setOrganisation(Organisation organisation) {
		this.organisation = organisation;
	}

	public Programe getPrograme() {
		return programe;
	}

	public void setPrograme(Programe programe) {
		this.programe = programe;
	}

}
